Use of SPAN Tag in HTML

The <span> tag is a generic inline container element and has no specific purpose or uses. Developers use the <span> tag to style sections of text via CSS. It can be used just like the <div> tag. The only difference is that <div> is a block-level container element whereas <span> is an inline container element. While each <div> starts on a new line, there are no line breaks after the <span> tag.